home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / PowerD / powerd / modules.lha / modules / gadgets / button.m < prev    next >
Encoding:
Text File  |  2001-10-28  |  4.5 KB  |  103 lines

  1. /*
  2. **  $VER: button.h 44.1 (19.10.1999)
  3. **  Includes Release 44.1
  4. **
  5. **  button.gadget definitions
  6. **
  7. **  (C) Copyright 1987-1999 Amiga, Inc.
  8. **      All Rights Reserved
  9. */
  10. /*****************************************************************************/
  11. //MODULE 'reaction/reaction','intuition/gadgetclass','images/bevel'
  12. /*****************************************************************************/
  13. /* Additional attributes defined by the button.gadget class
  14.  * Our class supports most functions of C= button developer release,
  15.  * however we support many additional options as noted below.
  16.  */
  17. #define BUTTON_Dummy      (TAG_USER+0x4000000)
  18. #define BUTTON_PushButton     (BUTTON_Dummy+1)
  19. /* (BOOL) Indicate whether button stays depressed when clicked */
  20. #define BUTTON_Glyph      (BUTTON_Dummy+2)
  21. /* (struct Image *) Indicate that image is to be drawn using
  22.    * BltTemplate. Note this tag is only partial support, only single
  23.    * plane glyphs are rendered correctly.
  24.    */
  25. #define BUTTON_TextPen      (BUTTON_Dummy+5)
  26. /* (LONG) Pen to use for text (-1 uses TEXTPEN) */
  27. #define BUTTON_FillPen      (BUTTON_Dummy+6)
  28. /* (LONG) Pen to use for fill (-1 uses FILLPEN) */
  29. #define BUTTON_FillTextPen    (BUTTON_Dummy+7)
  30. /* (LONG) Pen to use for fill (-1 uses FILLTEXTPEN) */
  31. #define BUTTON_BackgroundPen  (BUTTON_Dummy+8)
  32. /* (LONG) Pen to use for fill (-1 uses BACKGROUNDPEN) */
  33. #define BUTTON_RenderImage    GA_Image
  34. #define BUTTON_SelectImage    GA_SelectRender
  35. #define BUTTON_BevelStyle     (BUTTON_Dummy+13)
  36. /* Bevel Box Style */
  37. #define BUTTON_Transparent    (BUTTON_Dummy+15)
  38. /* Button is transparent, EraseRect fill pattern used (if any)
  39.    * to render button background.
  40.    */
  41. #define BUTTON_Justification  (BUTTON_Dummy+16)
  42. /* LEFT/RIGHT/CENTER jutification of GA_Text text */
  43. #define BUTTON_SoftStyle    (BUTTON_Dummy+17)
  44. /* Sets Font SoftStyle, ie, Bold, Italics, etc */
  45. #define BUTTON_AutoButton     (BUTTON_Dummy+18)
  46. /* Automatically creates a button with standard scaled glyphs */
  47. #define BUTTON_VarArgs      (BUTTON_Dummy+19)
  48. /* Argument array for GA_Text varargs string */
  49. #define BUTTON_DomainString     (BUTTON_Dummy+20)
  50. /* (STRPTR) default string used for domain calculation */
  51. #define BUTTON_Integer      (BUTTON_Dummy+21)
  52. /* (int) integer value to display a numeric string.
  53.    * Useful with notifications from sliders, scrollers, etc
  54.    */
  55. #define BUTTON_BitMap       (BUTTON_Dummy+22)
  56. /* (struct BitMap *) BitMap to render in button, rather than an image... */
  57. #define BUTTON_AnimButton     (BUTTON_Dummy+50)
  58. /* (BOOl) Is button animatable?  Use to turn animating on or off */
  59. #define BUTTON_AnimImages     (BUTTON_Dummy+51)
  60. /* (struct Image *) Sets an array of struct Images for animation */
  61. #define BUTTON_SelAnimImages  (BUTTON_Dummy+52)
  62. /* (struct Image *) sets an array of alternate images for a selected
  63.    * state if used, must contain an equal number of images as the
  64.    * array used for BUTTON_AnimImages.  It's wise to use the
  65.    * same sized images too
  66.    */
  67. #define BUTTON_MaxAnimImages  (BUTTON_Dummy+53)
  68. /* (LONG) Number of images available in the arrays */
  69. #define BUTTON_AnimImageNumber    (BUTTON_Dummy+54)
  70. /* (LONG) Current image number in the array(s) to use
  71.    * the range of available frames is 0..MaxAnimImages-1
  72.    */
  73. #define BUTTON_AddAnimImageNumber  (BUTTON_Dummy+55)
  74. /* (ULONG) Value to be added to the current image number counter
  75.    * the counter will wrap around at MaxAnimImages
  76.    */
  77. #define BUTTON_SubAnimImageNumber  (BUTTON_Dummy+56)
  78. /* (ULONG) Value to be subtracted from the current image number counter
  79.    * the counter will wrap around when less than 0
  80.    */
  81. /****************************************************************************/
  82. /* Justification modes for BUTTON_Justification.
  83.  */
  84. #define BCJ_LEFT  0
  85. #define BCJ_CENTER  1   /* default - center text */
  86. #define BCJ_RIGHT   2
  87. #define BCJ_CENTRE  BCJ_CENTER
  88. /* Built-in button glyphs for BUTTON_AutoButton.
  89.  */
  90. #define BAG_POPFILE     1 /* popup file req */
  91. #define BAG_POPDRAWER   2 /* popup drawer req */
  92. #define BAG_POPFONT     3 /* popup font req */
  93. #define BAG_CHECKBOX  4 /* check glyph button */
  94. #define BAG_CANCELBOX   5 /* cancel glyph button */
  95. #define BAG_UPARROW     6 /* up arrow */
  96. #define BAG_DNARROW     7 /* down arrow */
  97. #define BAG_RTARROW     8 /* right arrow */
  98. #define BAG_LFARROW     9 /* left arrow */
  99. #define BAG_POPTIME     10  /* popup time glyph */
  100. #define BAG_POPSCREEN   11  /* popup screen mode glyph */
  101. #define BAG_POPUP     12  /* generic popup */
  102. /*****************************************************************************/
  103.